package com.acegear.horizon.domain.events;

/**
 * Created by guoweike on 17/3/9.
 */
public class UserTransferEvent extends BaseEvent {

  private Long userId;
  private String password;
  private String phone;

  public UserTransferEvent(Long userId, String password, String phone) {
    this.userId = userId;
    this.password = password;
    this.phone = phone;
    genEventId();
  }

  public UserTransferEvent() {
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  @Override
  public String routingKey() {
    return "horizon.domain.user.transfer";
  }
}
